package com.lfl.springbootmybatis.controller;

import com.lfl.springbootmybatis.pojo.User;
import com.lfl.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 叶星痕
 * @data 2024/8/3 下午4:31
 * 文件名 : UserContorller
 * 描述 :
 */
@RestController
public class UserController {

    @Autowired
    private UserService userService;


    @RequestMapping("/findById")
    public User findById(Integer id){
        return   userService.findById(id);
    }

}
